import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { CommodityDetailsComponent } from './commodity-details.component';

const routes: Routes = [
  {
    path: '' , component: CommodityDetailsComponent,
    children: [
      {
        path: 'shop-details' , loadChildren: () => import('../shop-details/shop-details.module').then(m => m.ShopDetailsModule)
      },
      {
        path: 'shop-evalute' , loadChildren: () => import('../shop-evalute/shop-evalute.module').then(m => m.ShopEvaluteModule)
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class CommodityDetailsRoutingModule { }
